package com.ruoyi.scrap.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_scrap_apply_out")
public class ScrapApplyOut extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 入库单id */
    @Excel(name = "入库单id")
    private Long intoId;
    /** 申请单id */
    @Excel(name = "申请单id")
    private String applyId;
    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;
    /** 名称 */
    @Excel(name = "名称")
    private String outName;
    /** 计量单位 */
    @Excel(name = "计量单位")
    private String outUnit;
    /** 皮重 */
    @Excel(name = "皮重")
    private BigDecimal weightTare;
    /** 出库量 */
    @Excel(name = "出库量")
    private BigDecimal weightOut;
    /** 总重 */
    @Excel(name = "总重")
    private BigDecimal weightTotal;
    /** 期末剩重 */
    @Excel(name = "期末剩重")
    private BigDecimal weightEnd;
    /** 车牌 */
    @Excel(name = "车牌")
    private String carNo;
    /** 经办人 */
    @Excel(name = "经办人")
    private String operator;
    /** 交料人 */
    @Excel(name = "交料人")
    private String deliverer;
    /** 科室id */
    @Excel(name = "科室id")
    private Long deptId;
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    /** 删除标识 */
    @Excel(name = "删除标识")
    private String delFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("intoId", getIntoId())
                .append("applyId", getApplyId())
                .append("outTime", getOutTime())
                .append("outName", getOutName())
                .append("outUnit", getOutUnit())
                .append("weightTare", getWeightTare())
                .append("weightOut", getWeightOut())
                .append("weightTotal", getWeightTotal())
                .append("weightEnd", getWeightEnd())
                .append("carNo", getCarNo())
                .append("operator", getOperator())
                .append("deliverer", getDeliverer())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
